<?php
namespace Admin\Controller;
use Think\Controller;
class DingdanController extends Controller {
    public function dingdan(){
    	$dd=D('order');
        $count = $dd->field('did, uid, address,mobile,send_time, remark,
    		cid,price,order_time,num' )->count();
        $Page       = new \Think\Page($count,2);//继承
        $show       = $Page->show();//展示
         $dingdan = $dd->field('did, uid, address,mobile,send_time, remark,
    		cid,price,order_time,num' )->limit($Page->firstRow.','.$Page->listRows)->select();
        $this->assign('count',$count);
        $this->assign('page',$show);
    	$this->assign('dd',$dingdan);
    	$this->display(); 
    }
}